<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html lang="zh">
<head>
  <title>编辑学生</title>
  <meta charset="UTF-8">
  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"/>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"/>
</head>
<body>
<br><br>
<div class="container">
  <div class="panel panel-danger">
    <div class="panel-heading">
      <h3 class="panel-title">编辑学生</h3>
    </div>
    <div class="panel-body">
      <form action="${pageContext.request.contextPath}/student/update" method="post">
        <input type="hidden" class="form-control" name="id" value="${student.id}">
        <div class="form-group">
          <label for="name">姓名</label>
          <input type="text" class="form-control" id="name" name="name" value="${student.name}">
        </div>
        <div class="form-group">
          <label for="gender">性别</label>
          <input type="text" class="form-control" id="gender" name="gender" value="${student.gender}">
        </div>
        <div class="form-group">
          <label for="number">学号</label>
          <input type="text" class="form-control" id="number" name="number" value="${student.number}">
        </div>
        <div class="form-group">
          <label for="major">专业</label>
          <input type="text" class="form-control" id="major" name="major" value="${student.major}">
        </div>
        <div class="form-group">
          <label for="nation">民族</label>
          <input type="text" class="form-control" id="nation" name="nation" value="${student.nation}">
        </div>
        <div class="form-group">
          <label for="birthday">出生日期</label>
          <input type="text" class="form-control" id="birthday" name="birthday" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${student.birthday}"/>">
        </div>
        <div class="form-group">
          <label for="photo">照片</label>
          <input type="text" class="form-control" id="photo" name="photo" value="${student.photo}">
        </div>
        <div style="width: 100%; text-align: center; margin-bottom: -20px">
          <button type="submit" class="btn btn-default">提交</button>
        </div>
      </form>
    </div>
  </div>
</div>
</body>
<style>
    ::-webkit-scrollbar {
        width: .5em;
        height: .5em
    }

    ::-webkit-scrollbar-thumb {
        background: #ccc
    }

    ::-webkit-scrollbar-track {
        background: 0 0
    }
</style>
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</html>